//package com.ruoyi.api.service.impl;
//
//import com.alibaba.fastjson.JSON;
//import com.ruoyi.api.BD_Trotocol.BdDatasource;
//import com.ruoyi.api.BD_Trotocol.bean.EpiPositionBean;
//import com.ruoyi.api.service.SerialService;
//import com.ruoyi.api.vo.Serial;
//import com.ruoyi.vim.mapper.SerialMapper;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class SerialServiceImpl implements SerialService {
//
//    @Autowired
//    private SerialMapper serialMapper;
//
//    private BdDatasource bdDatasource;
//
//    @Override
//    public void add(Serial serial) {
//        serialMapper.add(serial);
//    }
//
////    @Override
////    public void add() {
////        String msg = "$BDEPI,1859948,1859948,2,2,1,140642.71,11821.6483333,E,3422.6750000,N,28,M,-1,M,1,1,,,0,*59";
////        int firstComma = msg.indexOf(",");
////        String result = msg.substring(firstComma + 6);
////            EpiPositionBean epiPositionBean = JSON.parseObject(result, EpiPositionBean.class);
////            Serial serial = new Serial();
////            serial.setTime(epiPositionBean.getTime());
////            serial.setContent(epiPositionBean.getLongitude() + "," + epiPositionBean.getLatitude());
////            serial.setBDnumber(epiPositionBean.getSenderID());
////            serial.setReceive(epiPositionBean.getReceiverID());
////            serial.setManner(0);
////            serial.setType(1);
////            serial.setDirectives("aaa");
////            serialMapper.add(serial);
////
////    }
//}
